import { httpUrl, pageSize } from 'api/config'
import { ajax } from 'api/axios'

export const getList = (page) => {
  const url = `${httpUrl}/rentor/home/getCurrentWaitRentMoney`

  const data = {
    page,
    pageSize
  }

  return ajax(url, data)
}

export const getHistoryList = (page) => {
  const url = `${httpUrl}/rentor/home/getHistoryWaintRentMoney`

  const data = {
    page,
    pageSize
  }

  return ajax(url, data)
}
